package com.example.calculator_backend;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @description: 贷款计算器后端服务主应用类
 * @author: hdr
 * @PACKAGE_NAME: com.example.calculator_backend
 * @DATE: 2025/8/6
 */
@SpringBootApplication
//@ComponentScan(basePackages = "com.example.calculator_backend")
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
        System.out.println("=================================");
        System.out.println("贷款计算器后端服务启动成功！");
        System.out.println("服务地址: http://localhost:8080");
        System.out.println("API文档: http://localhost:8080/api/loan");
        System.out.println("健康检查: http://localhost:8080/api/loan/health");
        System.out.println("=================================");
    }
}
